<section>
<?php
$atributos = array (
		'name' => 'login',
		'id' => 'form-login', 
);
echo form_open ( 'login', $atributos );

echo '<img id="img-logo"src="assets/img/logotipo.png" width="300px" height="189px" alt="Logotipo site">';

$atributos = array (
		'name' => 'usuario',
		'class' => 'input-block-level',
		'placeholder' => 'Usu&aacute;rio',
		'autofocus' => 'autofocus',
		'value' => set_value ( 'usuario' ),
		'maxlength' => '30',
		'size' => '30' 
);
if (form_error ( 'usuario' )) 
{
	echo '<div class="control-group error">';
	
	echo form_error ( 'usuario', '<span class="help-inline">', '</span>' );
	
	echo form_input ( $atributos );
	
	echo '</div>';
} else
	echo form_input ( $atributos );

$atributos = array (
		'name' => 'senha',
		'class' => 'input-block-level',
		'placeholder' => 'Senha',
		'maxlength' => '10',
		'size' => '10' 
);

if (form_error ( 'senha' )) {
	echo '<div class="control-group error">';
	
	echo form_error ( 'senha', '<span class="help-inline">', '</span>' );
	
	echo form_password ( $atributos );
	
	echo '</div>';
} 

else
	echo form_password ( $atributos );

$atributos = array (
		'name' => 'submit',
		'class' => 'btn btn-large btn-block btn-primary',
		'type' => 'submit',
		'content' => 'Fazer login' 
);
echo form_button ( $atributos );

echo form_close ();

?>
</section>